import Vue from 'vue';
import '../../basic/basic.css';
import '../../theme/fonts/iconfont.css';
import list from "./components/list/list.js";
import add from "./components/add/add.js";
new Vue({
    el:'#louie',
    data:{
        name:"louie",
        //顶部导航
        nav_index:0,
        nav:[
            {name:'皮肤列表',icon:'iconfont icon-pifu',value:'list',active:1},
            {name:'添加皮肤',icon:'iconfont icon-xinzenghuizong',value:'add',active:0},
        ],
    },
    components:{
        list,
        add
    },
    methods:{
        //nav切换
        changeNav:function(index){
            if(this.nav_index != index){
                this.nav[this.nav_index].active = 0;
                this.nav[index].active = 1;
                this.nav_index = index;
            }
        },
    }
});